package com.wteam.PoJo.DO;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品参数表
 * </p>
 *
 * @author author
 * @since 2024-07-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_params")
@ApiModel(value="Params对象", description="商品参数表")
public class Params implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "商品ID")
    private Long goodsId;

    @ApiModelProperty(value = "官方售价")
    private BigDecimal officialPrice;

    @ApiModelProperty(value = "材质")
    private String material;

    @ApiModelProperty(value = "预计出荷时间")
    private LocalDate estimatedDelivery;

    @ApiModelProperty(value = "产品配件")
    private String accessories;

    @ApiModelProperty(value = "尺寸")
    private String dimensions;

    @ApiModelProperty(value = "1为现货，2为预售商品")
    private int type;

    @ApiModelProperty(value = "运费")
    private BigDecimal postage;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT,select = false)
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE,select = false)
    private LocalDateTime updateTime;


}
